|
|
|
|
|
|
|
Q What value do you use to specify a new line in your file? |
|
|
|
|
|
|
|
|
A The vbNewLine constant. |
|
|
|
|
|
|
|
|
Q What kinds of applications read comma-separated value (CSV) files? |
|
|
|
|
|
|
|
|
A Applications like Access, SQL Server, and Excel read comma-separated value (CSV) files very smoothly, a fact that's helpful if you are a developer for a software development outsourcing firm where clients might send you values using your client software to your server site and you need to persist the information to a mature database. |
|
|
|
|
|
|
|
|
The workshop includes quiz questions to help gauge your grasp of the material. You'll find the answers to this quiz in Appendix A, Answers. Even if you feel that you totally understand the concepts presented here, you should work through the quiz anyway. The last section contains exercises for you to work through to help reinforce your learning. |
|
|
|
|
|
|
|
|
1. What are the three kinds of file management discussed in this chapter? |
|
|
|
|
|
|
|
|
2. What is the purpose of the Get statement for random access files? |
|
|
|
|
|
|
|
|
3. What are the four classes you could use to implement objects that manage files? |
|
|
|
|
|
|
|
|
4. What does CSV stand for? |
|
|
|
|
|
|
|
|
5. What kinds of file operations are best when using the Write # and Input # statements? |
|
|
|
|
|
|
|
|
6. What is a benefit of implementing binary access file operations? |
|
|
|
|
|
|
|
|
7. What is an assumption made about String values in binary files? |
|
|
|
|
|
|
|
|
8. What are the advantages of using the Rich Text Box in managing files? |
|
|
|
|
|
|
|
|
9. What is the purpose of the IPersistence, GeneralFile, and IFileSubsystem classes? |
|
|
|
|
|
|
|
|
10. Explain the persistNewInfo and persistAddedInfo methods of the GeneralFile family of classes. |
|
|
|
|
|
|
|
|
1. The IFileSubsystem class has the methods copyFile, deleteFile, and transferToFile. Implement a method, findFile, that searches for the file indicated by an argument, argFileName, that a client passes in. Use the classes in this chapter. This example assumes you have experience with Visual Basic file operations. Open a new Visual Basic project. |
|
|
|
|
|